<?php
/**
 * 
 * Jquery Demo Controller
 * 
 * @category Sfer
 * 
 * @package Sfer_App
 * 
 * @author Richard Thomas <richard@phpjack.com>
 * 
 * @license http://opensource.org/licenses/bsd-license.php BSD
 * 
 * @version $Id: Auth.php 3850 2009-06-24 20:18:27Z pmjones $
 * 
 */
class Sfer_App_Jquery extends Sfer_Controller_Jquery {

    /**
     * 
     * Sets the data as an array which gets converted to json
     * Example then outputs one of the values
     * 
     */
    public function actionBlah() {
        $this->_setData(array('a' => 1, 'b' => 2));
    }

    /**
     * 
     * Uses the jquery sfer library to push javascript
     * transfermations directly to the page
     * 
     */
    public function actionEffects() {
        $attribs = array();
        $attribs['class'] = 'large';
        $this->attr($attribs);
        $this->show();
        $this->addClass('green');
        $this->Script('alert("Hello")');
    }


}